package org.linlinjava.litemall.db.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@TableName(value = "litemall_cash_schedule",autoResultMap = true)
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class LitemallCashSchedule {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer userId;
    private Integer shopId;
    private Integer type;
    private LocalDateTime payTime;
    private BigDecimal orderCash;
    private BigDecimal receiveCash;
    @TableField(value = "`change`")
    private BigDecimal change;
    private BigDecimal refundCash;
    private BigDecimal actualCash;
    private String deviceNo;
}
